package com.app.shop.entity.show;

import com.app.shop.entity.SysMenu;
import com.app.shop.entity.WgCommodity;
import com.app.shop.util.Constant;

public class WgCommodityShow extends WgCommodity{

    private String statusName;

    private String deleteFlagName;

    private String pictureUrl;

    /**
     * 将字典值补全
     */
    public void dataSet(){
        this.statusName= Constant.getDic(10023,this.getStatus());
        this.deleteFlagName= Constant.getDic(10024,this.getDeleteFlag());
        if(this.getPictureId()!=null) {
            this.pictureUrl = Constant.PICTURE_MAP.get(this.getPictureId());
            if(this.pictureUrl==null){
                this.pictureUrl="图片已删除,请重新设置";
            }
        }
    }

    public String getStatusName() {
        return statusName;
    }

    public void setStatusName(String statusName) {
        this.statusName = statusName;
    }

    public String getDeleteFlagName() {
        return deleteFlagName;
    }

    public void setDeleteFlagName(String deleteFlagName) {
        this.deleteFlagName = deleteFlagName;
    }

    public String getPictureUrl() {
        return pictureUrl;
    }

    public void setPictureUrl(String pictureUrl) {
        this.pictureUrl = pictureUrl;
    }
}